package cn.itcast.user.login;

import lombok.Data;

@Data
public class R {
    int code;
    Object data;

    public static R se (){
        return se(null);
    }
    public static R se (Object o){
        R r= new R();
        r.setCode(200);
        r.setData(o);
        return r;
    }
    public static R df(){
        return df(null);
    }
    public static R df(Object o){
        R r= new R();
        r.setCode(400);
        r.setData(o);
        return r;
    }
}
